<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
       xmlns:f="http://java.sun.com/jsf/core" 
      xmlns:p="http://primefaces.prime.com.tr/ui">
    <h:head>
      
    </h:head>
     <f:view>
        <h:form id="UserForm" prependId="false" >
                   <p:growl id="growl" showDetail="true" life="3000" /> 
                         <p:panel header=" Thêm Giáo Vụ" style="background-color: #ebf3fd;">  
                            <h:panelGrid columns="2" cellpadding="5" >  
                                         <h:outputLabel for="username" value=" Mã Giáo Viên: * " />  
                                         <h:inputText value="#{giaovienbean.magv}"   id="username"   />  
                                         <h:outputLabel for="tenmh" value=" Tên Giáo Viên : * " />  
                                         <h:inputText value="#{giaovienbean.tengv}"   id="tenmh" required="true" label="Tên Môn Học" />  
                                         <h:outputLabel value=" Ngày Sinh:  " />  
                                         <p:calendar value="#{giaovienbean.ngaysinh}" pattern="dd/MM/yyyy" /> 
                                         <h:outputLabel for="diachi" value=" Địa Chỉ *:  " />  
                                         <h:inputText    value="#{giaovienbean.diachi}"   id="diachi" required="true" label="Ghi Chú " /> 
                                         <h:outputLabel for="name" value=" Tên Đăng Nhập *:  " />  
                                         <h:inputText    value="#{giaovienbean.name}"   id="name" required="true" label="Ghi Chú " /> 
                                         <h:outputLabel for="pass" value=" Password * :  " />  
                                         <h:inputText    value="#{giaovienbean.password}"   id="pass" required="true" label="Ghi Chú " /> 
                                         <h:commandButton value=" Done " action="#{giaovienController.addAndExit(giaovienbean)}"   />               
                                     
                           </h:panelGrid> 
                       </p:panel> 
                </h:form> 
       </f:view>
</html>

